package org.lys.enumenates;

public abstract class MyWeekDay {
	
	private MyWeekDay(){
		System.out.println("init");
	}

	public static MyWeekDay MON = new MyWeekDay() {

		@Override
		public MyWeekDay nextDay() {
			return MyWeekDay.TUE;
		}
	};

	public static MyWeekDay TUE = new MyWeekDay() {
		@Override
		public MyWeekDay nextDay() {
			return MyWeekDay.WEN;
		}
	};

	public static MyWeekDay WEN = new MyWeekDay() {
		@Override
		public MyWeekDay nextDay() {
			return MyWeekDay.THU;
		}
	};

	public static MyWeekDay THU = new MyWeekDay() {
		@Override
		public MyWeekDay nextDay() {
			return MyWeekDay.FRI;
		}
	};
	
	public static MyWeekDay FRI = new MyWeekDay() {
		@Override
		public MyWeekDay nextDay() {
			return MyWeekDay.SAT;
		}
	};
	
	public static MyWeekDay SAT = new MyWeekDay() {
		@Override
		public MyWeekDay nextDay() {
			return MyWeekDay.SUN;
		}
	};

	public static MyWeekDay SUN = new MyWeekDay() {
		@Override
		public MyWeekDay nextDay() {
			return MyWeekDay.MON;
		}
	};

	public abstract MyWeekDay nextDay();

}
